﻿using System.Threading.Tasks;

namespace EventBus.RabbitMQ
{
    public interface IRabbitMqPublisher
    {
        /// <summary>
        /// 发布
        /// </summary>
        /// <param name="queueName"></param>
        /// <param name="content"></param>
        void Publish(string queueName, object content);

        /// <summary>
        /// 异步发布
        /// </summary>
        /// <param name="queueName"></param>
        /// <param name="content"></param>
        /// <returns></returns>
        Task PublishAsync(string queueName, object content);
    }
}
